﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MadLibrary.Net.Http
{
    /// <summary>
    /// Throws exception when request input is invalid.
    /// </summary>
    [Serializable]
    public class InvalidRequestInput : Exception
    {
        /// <summary>
        /// Constructor
        /// </summary>
        public InvalidRequestInput()
            : base("Invalid request input passed to be parsed.")
        {
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="Message">Message.</param>
        public InvalidRequestInput(string Message)
            : base(Message)
        {
        }
    }

    /// <summary>
    /// Throws exception when response input is invalid.
    /// </summary>
    [Serializable]
    public class InvalidResponseInput : Exception
    {
        /// <summary>Initializes a new instance of the InvalidResponseInput class.</summary>
        public InvalidResponseInput()
            : base("Invalid response input passed to be parsed.")
        {
        }

        /// <summary>Initializes a new instance of the InvalidResponseInput class.</summary>
        /// <param name="Message">The message.</param>
        public InvalidResponseInput(string Message)
            : base(Message)
        {
        }
    }
}